﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication1
{
    class XuatDaySo
    {
        public void Fibonacci(int A)
        {
            double n1 = 0, n2 = 1, n3, i=0;
            while (i < A)
            {
                n3 = n1 + n2;
                n1 = n2;
                n2 = n3;
                i++;
                Console.Write("{0}\t",n3);
            }
        }
    }
}
